package com.example.understand_compose1.fet_jetpack_compose_news.utils

import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.derivedStateOf

val LazyListState.isScrolled: Boolean get()
        = derivedStateOf {
            firstVisibleItemIndex > 0 ||
            firstVisibleItemScrollOffset > 0
        }.value